= simple_form_for(@sales_follow_up, remote: true) do |f|
  = f.input_field :firm_id, as: :hidden
  = f.input_field :leads_type, as: :hidden
  = f.input_field :user_id, as: :hidden
  table.table.table-borderless
    tr
      th style='width:120px' 联系人
      td= f.input_field :contact_id, collection: @contacts, class: 'form-control'
    tr
      th 安排时间
      td= f.input_field :appointment_time, as: :string, class: 'form-control js-datetimepicker', data: {'date-format': 'Y-M-D HH:mm'}
    tr
      th 跟进目标
      td= f.input_field :follow_up_target_type, class: 'form-control'
    tr
      th 跟进方式
      td= f.input_field :follow_up_type, class: 'form-control'
    tr style='height: 110px'
      th 跟进内容
      td= f.input_field :content, as: :text, class: 'form-control', style: 'height: 100px'
    tr
      th 完成任务
      td
        - if @sales_follow_up.completed?
          label.label.label-success style='line-height:100%'
            | 已完成
            i.fa.fa-check
        - else
          lable.css-input.css-checkbox.css-checkbox-primary.pull-left
            = f.check_box :is_completed
            span
        .pull-right
          = f.button :submit, class:'btn btn-primary'
          = link_to '关闭', 'javascript:void(0)', class: 'btn btn-default push-10-l', data: {dismiss: 'modal'}